package DesignPatern.A12_策略模式.MSB;

public class A03_CatHeightComparator implements Comparator<A03_Cat>
{
    @Override
    public int compare(A03_Cat o1, A03_Cat o2)
    {
        if (o1.height > o2.height) return -1;
        else if (o1.height < o2.height) return 1;
        else return 0;
    }
}
